#define _CRT_SECURE_NO_WARNINGS 1
#include <stdio.h>
struct node
{
    int rnb;
}a1, a2;
int  CompareRational()
{
    if (a1.rnb < a2.rnb)
        return -1;
    if (a1.rnb == a2.rnb)
        return 0;
    if (a1.rnb > a2.rnb)
        return 1;
}
int main()
{
    scanf("%d%d", &a1.rnb, &a2.rnb);
    int k = CompareRational();
    printf("%d", k);
    return 0;
}